package com.codeplay.repository;

import com.codeplay.entity.Content;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ContentRepository extends JpaRepository<Content, Long> {
    List<Content> findByChapterIdOrderByOrderIndexAsc(Long chapterId);
    Content findByChapterIdAndOrderIndex(Long chapterId, Integer orderIndex);
} 